package edu.uow.devdocs
/**
 * The Checklist entity.
 *
 * @author    
 *
 *
 */
class Checklist {
    static mapping = {
         table 'CHECKLIST'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id column:'CHECKLIST_ID'
		 id generator: 'sequence', params:[sequence:'CHECKLIST_SEQ']
		 sort checklist:'ASC'
    }
    String description
    String checklist
    Boolean renderHtmlFlag
    Date lastUpdated

    static constraints = {
        description(nullable: true)
        checklist(nullable: false)
        renderHtmlFlag(nullable: false)
        lastUpdated(nullable: true)
    }
    String toString() {
        return "${description}" 
    }
}
